In each folder are present the file corraleted to a spiecies that have been measured: horse, dog, sheep 
The DATA from HORSE and DOG:Single channel device with 2 wavelength (685nm and 830nm)
The DATA from SHEEP: single channel device witha supercontinuum laser, selecting 690nm and 830nm)  

script write in matlab to open the file .dat 


function [data] = ReadDAT_forced2022(filename,nReps,nLambda,nChannel)
% file name must contain folder, name and tipe of the file
header_length=764;
subheader_length=204;
data = zeros(nReps,nLambda,nChannel);
%
fid=fopen(filename, 'r');

fread(fid,header_length); %read header

for ic = 1:nReps
    for il = 1:nLambda
           fread(fid,subheader_length);  %read subheader
           data(ic,il,:)=fread(fid,nChannel,'ushort');
    end
end

fclose(fid);

